home *** CD-ROM | disk | FTP | other *** search
/ Gekikoh Dennoh Club 7 / Gekikoh Dennoh Club Vol. 7 (Japan).7z / Gekikoh Dennoh Club Vol. 7 (Japan) (Track 01).bin / games / saru / datamake / rmk.c < prev    next >
C/C++ Source or Header  |  1999-06-15  |  1KB  |  68 lines

  1. /*
  2.     @>rmk > rtest.bat
  3. で回転音源
  4. */
  5. #include    <math.h>
  6.  
  7. #define        RAD        (3.1415926535/180)
  8.  
  9. main()
  10. {
  11.  
  12.     int    theta,rr=1050;
  13.     int    manx=1100,many=1250;        //人間位置
  14.     char    *inFilename="1005_011.m44";
  15.     
  16.     for( theta=0; theta<=85; theta+=5 ){
  17.  
  18. printf(
  19. ":L%03d\n"
  20. "vspace1 %s /s%d,%d\n /m%d,%d\n"
  21. "lrmix out0fl.m44 out0fr.m44 out0f.s44\n"
  22. "lrmix out1fl.m44 out1fr.m44 out1f.s44\n"
  23. "lrmix out1ll.m44 out1lr.m44 out1l.s44\n"
  24. "lrmix out1bl.m44 out1br.m44 out1b.s44\n"
  25. "lrmix out1rl.m44 out1rr.m44 out1r.s44\n"
  26. "mix out0f.s44 out1f.s44 out1l.s44 out1b.s44 out1r.s44 /out.s44\n"
  27. "copy out.s44 L%03d.s44\n",
  28.  
  29. theta*10,
  30. inFilename,
  31. manx-(int)((float)rr*sin(theta*RAD)),
  32. many+(int)((float)rr*cos(theta*RAD)),
  33. manx,
  34. many,
  35. theta*10
  36.  
  37. );
  38.  
  39.  
  40. printf(
  41. ":R%03d\n"
  42. "vspace1 %s /s%d,%d /m%d,%d\n"
  43. "lrmix out0fl.m44 out0fr.m44 out0f.s44\n"
  44. "lrmix out1fl.m44 out1fr.m44 out1f.s44\n"
  45. "lrmix out1ll.m44 out1lr.m44 out1l.s44\n"
  46. "lrmix out1bl.m44 out1br.m44 out1b.s44\n"
  47. "lrmix out1rl.m44 out1rr.m44 out1r.s44\n"
  48. "mix out0f.s44 out1f.s44 out1l.s44 out1b.s44 out1r.s44 /out.s44\n"
  49. "copy out.s44 R%03d.s44\n",
  50.  
  51. theta*10,
  52. inFilename,
  53. manx+(int)((float)rr*sin(theta*RAD)),
  54. many+(int)((float)rr*cos(theta*RAD)),
  55. manx,
  56. many,
  57. theta*10
  58.  
  59. );
  60.  
  61.  
  62.  
  63.  
  64.     }
  65.  
  66. }
  67.  
  68.